add_definitions(-DTRANSLATION_DOMAIN=\"plasma_applet_org.kde.plasma.icon\")

set(iconapplet_SRCS
    iconapplet.cpp
)

add_library(plasma_applet_icon MODULE ${iconapplet_SRCS})

kcoreaddons_desktop_to_json(plasma_applet_icon package/metadata.desktop)

target_link_libraries(plasma_applet_icon
                      KF5::I18n
                      KF5::KIOCore # for OpenFileManagerWindowJob
                      KF5::KIOGui # for FavIconRequestJob
                      KF5::KIOWidgets # for KRun
                      KF5::Plasma
                      PW::LibTaskManager)

install(TARGETS plasma_applet_icon DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/applets)

plasma_install_package(package org.kde.plasma.icon)
